<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/jsp/include.jsp" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link rel="stylesheet" type="text/css" href="/fisiosoftJDV/faces/jsfcrud.css" />
        <title>Crear Sesion</title>
    </head>
    <body>
        <center><h2>Ingresar Nueva Sesion</h2></center>
        <br>
        <form:form method="post" commandName="addSes">
          <table align="center" align="center" width="60%" bgcolor="f8f8ff" border="0" cellspacing="0" cellpadding="5">
              <tr>
              <td align="right" width="20%">Identificacion paciente:* </td>
                <td width="20%">                
                    <form:select path="idPaciente">
                        <c:forEach items="${listPaciente}" var="paciente">
                            <form:option value="${paciente.idPaciente}"> <c:out value="${paciente.cedula}"/> - <c:out value="${paciente.nombre}"/> <c:out value="${paciente.apellido}"/></form:option>
                        </c:forEach>
                    </form:select>
                </td>
            </tr>
            <tr>
              <td align="right" width="30%">Progreso de la Terapia:*</td>
                <td width="40%">
                  <form:textarea path="progresoTerapia"/>
                </td>
                <td>
                  <font color="red"><form:errors path="progresoTerapia"/></font>
                </td>
            </tr>
            <tr>
              <td align="right" width="20%">Evolucion y Logros:*</td>
                <td width="10%">
                    <form:textarea path="evolucionLogros"/>
                </td>
                <td>
                  <font color="red"><form:errors path="evolucionLogros"/></font>
                </td>
            </tr>
            <tr>
              <td align="right" width="20%">Recomendaciones:</td>
                <td width="20%">
                  <form:textarea path="recomendaciones"/>
                </td>
            </tr>            
            <tr>
                <td align="right" width="20%"></td>
                <td width="20%"></td>
            </tr>
            <tr>
                <td align="right" width="20%"><input type="submit" align="right" value="Guardar"></td>
                <td width="20%">
                        <input type="reset" align="center" value="Limpiar">
                </td>
            </tr>
          </table>
          <br>
          <h6>Los campos con (*) son obligatorios.</h6>
        </form:form>
    </body>
</html>
